<!-- /*
 *  mini-SaaS
 *  Application for developing Software as a Service (SaaS) 
 *  Copyright (c) 2011 Anand Sudhakaran, Bryce Holton, Chao Zhang
 *  ASU
 *
 *  This file is part of mini-SaaS.
 *
 *  mini-SaaS is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  mini-SaaS is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
 *  along with mini-SaaS; if not, see <http://www.gnu.org/licenses/>. 
 *
 */
  -->

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<jsp:useBean id="sampleServicesProxyid" scope="session" class="loginbean.ServicesProxy" />
<body>
<%
if(request.getParameter("tenantid") != null)
	session.setAttribute("tenantid", request.getParameter("tenantid")); %>
<%
if(request.getParameter("workflowname") != null)
{
	session.setAttribute("workFlowName", request.getParameter("workflowname"));
	session.setAttribute("nextURL", null);
}
String newURL = sampleServicesProxyid.getNextWorkFlowURL((String)session.getAttribute("nextURL"),(String)session.getAttribute("workFlowName"));
session.setAttribute("nextURL", newURL);
if(newURL != null)
	response.sendRedirect(newURL);
%>
</body>
</html>